Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libgit2: 1.8.4 -> 1.9.0 (also pygit2 update) #373096

Merged
merged 14 commits into from
Jan 27, 2025
Merged

Conversation

rhelmot
Copy link
Contributor

@rhelmot rhelmot commented Jan 12, 2025

Also includes a small configuration diff to get it to build on OpenBSD. I'll run nixpkgs-review overnight.

Changelog

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
    • x86_64-openbsd (cross)
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@rhelmot
Copy link
Contributor Author

rhelmot commented Jan 17, 2025

nixpkgs-review is still running... there are 11 failures so far, most of which are projects that have libgit2 pinned to < 1.9.0... which is obviously concerning.

@rhelmot
Copy link
Contributor Author

rhelmot commented Jan 17, 2025

libgit2 seems to have introduced breaking changes this version, so this is gonna be a nasty upgrade...

@rhelmot

This comment was marked as outdated.

@emilazy
Copy link
Member

emilazy commented Jan 21, 2025

Pushed to:

  • rebase on the merge base of staging and master for easier testing;
  • fix the build on Darwin when using a case‐sensitive build directory;
  • fix Nix and Jujutsu.

Will try another review with these fixes; hopefully it’ll be considerably more green.

Copy link
Member

@Mic92 Mic92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nix side looks good to me.

@rhelmot

This comment has been minimized.

@emilazy
Copy link
Member

emilazy commented Jan 22, 2025

nixStatic is already broken on master, because pkgsStatic.git is. This PR isn’t regressing it, so no worries there.

We were already patching libgit2-glib for 1.8.0; I’ve added a patch for 1.9.0 that is already used by Homebrew. That should fix a handful of the failures.

cargo-update was fixed with a bump. It looks like GitButler would be fixed with an update too but there‘s some cursed Cargo fetcher thing that makes that not just a matter of nix-update.

cargo-generate and nix-init look like they just need Cargo patches to bump their indirect git2 dependencies. Hopefully nix-init can be fixed upstream as with the last libgit2 bump.

Nothing else really looks concerning, assuming that the libgit2-glib patch fixes its downstream users. Probably a good time for another nixpkgs-review run.

@rhelmot

This comment was marked as outdated.

@emilazy
Copy link
Member

emilazy commented Jan 22, 2025

The actual regressions vs. master (other than GitButler) are:

✔  cargo-generate-0.22.1  2025-01-19  https://hydra.nixos.org/build/285731652
✔  edopro-application-40.1.4  2025-01-19  https://hydra.nixos.org/build/285667490
✔  gex-0.6.4  2025-01-20  https://hydra.nixos.org/build/285808304
✔  git-mit-5.14.3  2025-01-19  https://hydra.nixos.org/build/285787901
✔  git-warp-time-0.8.4  2025-01-19  https://hydra.nixos.org/build/285745844
✔  guile-git-0.9.0  2025-01-20  https://hydra.nixos.org/build/285782126
✔  guix-1.4.0  2025-01-20  https://hydra.nixos.org/build/285738832
✔  nix-init-0.3.2  2025-01-19  https://hydra.nixos.org/build/285739351
✔  poac-0.10.1  2025-01-19  https://hydra.nixos.org/build/285681930
✔  snapcraft-8.5.1  2025-01-22  https://hydra.nixos.org/build/286309123

I’ll try to take a look at these tonight.

@rhelmot
Copy link
Contributor Author

rhelmot commented Jan 22, 2025

edo9300/edopro#284 legitimate failure from upstream with no patch available for edopro-application.

@emilazy
Copy link
Member

emilazy commented Jan 23, 2025

snapcraft was apparently a transient failure. I believe the only remaining regressions are nix-init (waiting on nix-community/nix-init#589) and gitbutler (waiting on #282798), so this should be as ready as it’ll ever be. Upstreaming the guile-git changes is pending figuring out what happened to my GitLab account…

@rhelmot
Copy link
Contributor Author

rhelmot commented Jan 23, 2025

also poac, which was renamed to cabinpkg on master, should be fixed with #376011

@ofborg ofborg bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 25, 2025
@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 25, 2025
@rhelmot
Copy link
Contributor Author

rhelmot commented Jan 25, 2025

rebased on top of staging to resolve conflicts with #376038 and friends. running review now. I'm going to suggest that we've done enough work to mitigate fallout from this upgrade and we should merge.

@emilazy
Copy link
Member

emilazy commented Jan 25, 2025

Agreed, doesn’t seem like a nix-init update is going to happen before this is merged.

Did you regenerate the changed cargoHashes after rebase (since useFetchCargoVendor uses a different scheme)? Sadly a review won’t catch that if you have the previous FODs cached…

Copy link
Member

@emilazy emilazy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed hashes were regenerated, merging!

@emilazy emilazy merged commit 23ebd08 into NixOS:staging Jan 27, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants